package mapper;

import org.springframework.stereotype.Repository;
import pojo.User;

import java.util.Map;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByLogin(User record);

    User selectByUsername(String username);

    int updateTypeByPrimaryKey(Integer id);

    int updateWalletById(User user);

    int updateBusinessWalletById(Map<String,Object> map);
}
